<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
</head>
<body>
<a th:href="@{/goForm}">添加信息</a>
<table border="1" cellpadding="0" cellspacing="0">
    <tr>
        <td>ID</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>性别</td>
        <td>详情</td>
        <td>删除</td>
    </tr>
    <tr th:each="stu,info:${students}">
        <td th:text="${info.count}"></td>
        <td th:text="${stu.name}"></td>
        <td th:text="${stu.age}"></td>
        <td th:text="${stu.sex}"></td>
        <td><a th:href="@{|/queryById/${stu.id}|}" th:text="|用户${info.count}|"></a></td>
        <td><a th:href="@{|/deleteUserById/${stu.id}|}">删除</a></td>
    </tr>
</table>
</body>
</html>